package cn.com.tiptop.license.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 订单表（授权机器表）
 * </p>
 *
 * @author qing
 * @since 2017-10-26
 */
@TableName("tb_license_order")
public class LicenseOrder extends Model<LicenseOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 编号
     */
	private String uuid;
    /**
     * 名称
     */
	private String name;
    /**
     * 产品名称
     */
	@TableField("product_name")
	private String productName;
    /**
     * 产品型号
     */
	@TableField("product_number")
	private String productNumber;
    /**
     * 产品版本号
     */
	@TableField("product_version")
	private String productVersion;
    /**
     * 产品序列号
     */
	@TableField("product_serial_no")
	private String productSerialNo;
    /**
     * 产品机器处理器序列号
     */
	@TableField("cpu_serial_no")
	private String cpuSerialNo;
    /**
     * 产品机器磁盘序列号
     */
	@TableField("harddisk_serial_no")
	private String harddiskSerialNo;
    /**
     * 产品机器物理地址序列号
     */
	@TableField("mac_serial_no")
	private String macSerialNo;
    /**
     * 菜单json, 小粒度控制，包含服务时间，包含服务id，应用编号 
     */
	@TableField("license_menu")
	private String licenseMenu;
    /**
     * 服务json, 小粒度控制，包含服务时间，包含服务id，应用编号
     */
	@TableField("license_service")
	private String licenseService;
    /**
     * 365证书过期时长/单位日(MODEL_CONTROLLER对应0) ，全局控制
     */
	@TableField("long_time")
	private Integer longTime;
    /**
     * 2017-12-20证书过期时间(MODEL_CONTROLLER对应1) ，全局控制
     */
	@TableField("end_time")
	private Date endTime;
    /**
     * 0或1
     */
	@TableField("model_controller")
	private String modelController;
    /**
     * 备注
     */
	private String remark;
    /**
     * 状态
     */
	private Integer status;
    /**
     * 2017-09-20证书生成时间，全局控制
     */
	@TableField("create_time")
	private Date createTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductNumber() {
		return productNumber;
	}

	public void setProductNumber(String productNumber) {
		this.productNumber = productNumber;
	}

	public String getProductVersion() {
		return productVersion;
	}

	public void setProductVersion(String productVersion) {
		this.productVersion = productVersion;
	}

	public String getProductSerialNo() {
		return productSerialNo;
	}

	public void setProductSerialNo(String productSerialNo) {
		this.productSerialNo = productSerialNo;
	}

	public String getCpuSerialNo() {
		return cpuSerialNo;
	}

	public void setCpuSerialNo(String cpuSerialNo) {
		this.cpuSerialNo = cpuSerialNo;
	}

	public String getHarddiskSerialNo() {
		return harddiskSerialNo;
	}

	public void setHarddiskSerialNo(String harddiskSerialNo) {
		this.harddiskSerialNo = harddiskSerialNo;
	}

	public String getMacSerialNo() {
		return macSerialNo;
	}

	public void setMacSerialNo(String macSerialNo) {
		this.macSerialNo = macSerialNo;
	}

	public String getLicenseMenu() {
		return licenseMenu;
	}

	public void setLicenseMenu(String licenseMenu) {
		this.licenseMenu = licenseMenu;
	}

	public String getLicenseService() {
		return licenseService;
	}

	public void setLicenseService(String licenseService) {
		this.licenseService = licenseService;
	}

	public Integer getLongTime() {
		return longTime;
	}

	public void setLongTime(Integer longTime) {
		this.longTime = longTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getModelController() {
		return modelController;
	}

	public void setModelController(String modelController) {
		this.modelController = modelController;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "LicenseOrder{" +
			"id=" + id +
			", uuid=" + uuid +
			", name=" + name +
			", productName=" + productName +
			", productNumber=" + productNumber +
			", productVersion=" + productVersion +
			", productSerialNo=" + productSerialNo +
			", cpuSerialNo=" + cpuSerialNo +
			", harddiskSerialNo=" + harddiskSerialNo +
			", macSerialNo=" + macSerialNo +
			", licenseMenu=" + licenseMenu +
			", licenseService=" + licenseService +
			", longTime=" + longTime +
			", endTime=" + endTime +
			", modelController=" + modelController +
			", remark=" + remark +
			", status=" + status +
			", createTime=" + createTime +
			"}";
	}
}
